<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodColorSizesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('good_color_sizes', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('colorId');
            $table->string('size');
            $table->integer('number');
            $table->float('inputPrice');
            $table->integer('onStackNumber');
            $table->tinyInteger('isDiscount');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('good_color_sizes');
    }
}
